<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.10.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SARibbon: SARibbonStackedWidget类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/javascript" src="clipboard.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="cookie.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="doxygen-awesome.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectlogo"><img alt="Logo" src="SA-logo.png"/></td>
  <td id="projectalign">
   <div id="projectname">SARibbon<span id="projectnumber">&#160;2.4.2</span>
   </div>
   <div id="projectbrief">SARibbon wiki</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.10.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){initNavTree('class_s_a_ribbon_stacked_widget.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="summary">
<a href="#nested-classes">类</a> &#124;
<a href="#signals">信号</a> &#124;
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pro-methods">Protected 成员函数</a> &#124;
<a href="#properties">属性</a> &#124;
<a href="class_s_a_ribbon_stacked_widget-members.html">所有成员列表</a>  </div>
  <div class="headertitle"><div class="title">SARibbonStackedWidget类 参考</div></div>
</div><!--header-->
<div class="contents">

<p>具有弹出式菜单功能的堆叠窗口部件  
 <a href="#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="_s_a_ribbon_stacked_widget_8h_source.html">SARibbonStackedWidget.h</a>&gt;</code></p>
<div class="dynheader">
类 SARibbonStackedWidget 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_s_a_ribbon_stacked_widget.png" alt=""/>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="nested-classes" name="nested-classes"></a>
类</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_a_ribbon_stacked_widget_1_1_private_data.html">PrivateData</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">The SARibbonStackedWidgetPrivate class  <a href="class_s_a_ribbon_stacked_widget_1_1_private_data.html#details">更多...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="signals" name="signals"></a>
信号</h2></td></tr>
<tr class="memitem:ad7bc02a35016dfc21107a17228a4289c" id="r_ad7bc02a35016dfc21107a17228a4289c"><td class="memItemLeft" align="right" valign="top"><a id="ad7bc02a35016dfc21107a17228a4289c" name="ad7bc02a35016dfc21107a17228a4289c"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>hidWindow</b> ()</td></tr>
<tr class="memdesc:ad7bc02a35016dfc21107a17228a4289c"><td class="mdescLeft">&#160;</td><td class="mdescRight">隐藏窗口信号 <br /></td></tr>
<tr class="separator:ad7bc02a35016dfc21107a17228a4289c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a906da4c803ac17724f7d86059a8e8478" id="r_a906da4c803ac17724f7d86059a8e8478"><td class="memItemLeft" align="right" valign="top"><a id="a906da4c803ac17724f7d86059a8e8478" name="a906da4c803ac17724f7d86059a8e8478"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>SARibbonStackedWidget</b> (QWidget *parent)</td></tr>
<tr class="separator:a906da4c803ac17724f7d86059a8e8478"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af31197e98a9868aa1b90ac133eb0616f" id="r_af31197e98a9868aa1b90ac133eb0616f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#af31197e98a9868aa1b90ac133eb0616f">setPopupMode</a> ()</td></tr>
<tr class="memdesc:af31197e98a9868aa1b90ac133eb0616f"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置弹出模式  <br /></td></tr>
<tr class="separator:af31197e98a9868aa1b90ac133eb0616f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5d66ea99158eaa11f5abb1c82f026000" id="r_a5d66ea99158eaa11f5abb1c82f026000"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a5d66ea99158eaa11f5abb1c82f026000">isPopupMode</a> () const</td></tr>
<tr class="memdesc:a5d66ea99158eaa11f5abb1c82f026000"><td class="mdescLeft">&#160;</td><td class="mdescRight">检查当前是否处于弹出模式  <br /></td></tr>
<tr class="separator:a5d66ea99158eaa11f5abb1c82f026000"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acbe1dd190ab3351d2eeec52b44ce74dd" id="r_acbe1dd190ab3351d2eeec52b44ce74dd"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#acbe1dd190ab3351d2eeec52b44ce74dd">setNormalMode</a> ()</td></tr>
<tr class="memdesc:acbe1dd190ab3351d2eeec52b44ce74dd"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置正常模式 和普通的stackwidget一样  <br /></td></tr>
<tr class="separator:acbe1dd190ab3351d2eeec52b44ce74dd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a19292ac19fe9773463b1dc03e39eb4d2" id="r_a19292ac19fe9773463b1dc03e39eb4d2"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a19292ac19fe9773463b1dc03e39eb4d2">isNormalMode</a> () const</td></tr>
<tr class="memdesc:a19292ac19fe9773463b1dc03e39eb4d2"><td class="mdescLeft">&#160;</td><td class="mdescRight">检查当前是否处于正常模式  <br /></td></tr>
<tr class="separator:a19292ac19fe9773463b1dc03e39eb4d2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af1ccb44764c3e695c850edb0d77fa6d2" id="r_af1ccb44764c3e695c850edb0d77fa6d2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#af1ccb44764c3e695c850edb0d77fa6d2">exec</a> ()</td></tr>
<tr class="memdesc:af1ccb44764c3e695c850edb0d77fa6d2"><td class="mdescLeft">&#160;</td><td class="mdescRight">在弹出模式下以模态方式运行事件循环  <br /></td></tr>
<tr class="separator:af1ccb44764c3e695c850edb0d77fa6d2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab56bf543d3ee5571931efcc90e2dde66" id="r_ab56bf543d3ee5571931efcc90e2dde66"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ab56bf543d3ee5571931efcc90e2dde66">moveWidget</a> (int from, int to)</td></tr>
<tr class="memdesc:ab56bf543d3ee5571931efcc90e2dde66"><td class="mdescLeft">&#160;</td><td class="mdescRight">类似tabbar的moveTab函数，交换两个窗口的index  <br /></td></tr>
<tr class="separator:ab56bf543d3ee5571931efcc90e2dde66"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4104d2850c2190b854d6b69d44fa42a7" id="r_a4104d2850c2190b854d6b69d44fa42a7"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a4104d2850c2190b854d6b69d44fa42a7">setUseAnimation</a> (bool on)</td></tr>
<tr class="memdesc:a4104d2850c2190b854d6b69d44fa42a7"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置是否启用弹出动画  <br /></td></tr>
<tr class="separator:a4104d2850c2190b854d6b69d44fa42a7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a670a3956edc5dc88b027cce3a5dffff9" id="r_a670a3956edc5dc88b027cce3a5dffff9"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a670a3956edc5dc88b027cce3a5dffff9">isUseAnimation</a> () const</td></tr>
<tr class="memdesc:a670a3956edc5dc88b027cce3a5dffff9"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取动画启用状态  <br /></td></tr>
<tr class="separator:a670a3956edc5dc88b027cce3a5dffff9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adccbd92170c2270757dfdfd17b8be98b" id="r_adccbd92170c2270757dfdfd17b8be98b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#adccbd92170c2270757dfdfd17b8be98b">setAnimationDuration</a> (int duration)</td></tr>
<tr class="memdesc:adccbd92170c2270757dfdfd17b8be98b"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置动画持续时间（毫秒）  <br /></td></tr>
<tr class="separator:adccbd92170c2270757dfdfd17b8be98b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3ba3ff9bf5d7d3f6c815e17b17d9da73" id="r_a3ba3ff9bf5d7d3f6c815e17b17d9da73"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a3ba3ff9bf5d7d3f6c815e17b17d9da73">animationDuration</a> () const</td></tr>
<tr class="memdesc:a3ba3ff9bf5d7d3f6c815e17b17d9da73"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取动画持续时间  <br /></td></tr>
<tr class="separator:a3ba3ff9bf5d7d3f6c815e17b17d9da73"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aebfb6e58fa5aecd54c0ea0709f407cf8" id="r_aebfb6e58fa5aecd54c0ea0709f407cf8"><td class="memItemLeft" align="right" valign="top"><a id="aebfb6e58fa5aecd54c0ea0709f407cf8" name="aebfb6e58fa5aecd54c0ea0709f407cf8"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>animationWidgetHeight</b> () const</td></tr>
<tr class="separator:aebfb6e58fa5aecd54c0ea0709f407cf8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa6bd8a0d1ce26c870aba2901556acc18" id="r_aa6bd8a0d1ce26c870aba2901556acc18"><td class="memItemLeft" align="right" valign="top"><a id="aa6bd8a0d1ce26c870aba2901556acc18" name="aa6bd8a0d1ce26c870aba2901556acc18"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setAnimationWidgetHeight</b> (int h)</td></tr>
<tr class="separator:aa6bd8a0d1ce26c870aba2901556acc18"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8f4bb11f3d60fbf79700c3dd06546413" id="r_a8f4bb11f3d60fbf79700c3dd06546413"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a8f4bb11f3d60fbf79700c3dd06546413">setNormalGeometry</a> (const QRect &amp;normalGeometry)</td></tr>
<tr class="memdesc:a8f4bb11f3d60fbf79700c3dd06546413"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置窗口normalGeometry，由于此窗口会有动画，防止动画过程中设置尺寸又被动画覆盖，因此此窗口的尺寸设置使用setNormalSize  <br /></td></tr>
<tr class="separator:a8f4bb11f3d60fbf79700c3dd06546413"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a13a6a0f0923c3d0ec85b7319adfa4fe3" id="r_a13a6a0f0923c3d0ec85b7319adfa4fe3"><td class="memItemLeft" align="right" valign="top"><a id="a13a6a0f0923c3d0ec85b7319adfa4fe3" name="a13a6a0f0923c3d0ec85b7319adfa4fe3"></a>
QRect&#160;</td><td class="memItemRight" valign="bottom"><b>normalGeometry</b> () const</td></tr>
<tr class="separator:a13a6a0f0923c3d0ec85b7319adfa4fe3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6e11c45f02dd276e2e4bde5860ee7817" id="r_a6e11c45f02dd276e2e4bde5860ee7817"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a6e11c45f02dd276e2e4bde5860ee7817">layoutRequestInnerWidgets</a> ()</td></tr>
<tr class="memdesc:a6e11c45f02dd276e2e4bde5860ee7817"><td class="mdescLeft">&#160;</td><td class="mdescRight">对内部窗口发送布局请求  <br /></td></tr>
<tr class="separator:a6e11c45f02dd276e2e4bde5860ee7817"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pro-methods" name="pro-methods"></a>
Protected 成员函数</h2></td></tr>
<tr class="memitem:a4fa7efa2fb6e1a2815590a9ed0094780" id="r_a4fa7efa2fb6e1a2815590a9ed0094780"><td class="memItemLeft" align="right" valign="top"><a id="a4fa7efa2fb6e1a2815590a9ed0094780" name="a4fa7efa2fb6e1a2815590a9ed0094780"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>showEvent</b> (QShowEvent *e) override</td></tr>
<tr class="separator:a4fa7efa2fb6e1a2815590a9ed0094780"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa0c4ca98f1278e5832c8406e0c90c4c2" id="r_aa0c4ca98f1278e5832c8406e0c90c4c2"><td class="memItemLeft" align="right" valign="top"><a id="aa0c4ca98f1278e5832c8406e0c90c4c2" name="aa0c4ca98f1278e5832c8406e0c90c4c2"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>hideEvent</b> (QHideEvent *e) override</td></tr>
<tr class="separator:aa0c4ca98f1278e5832c8406e0c90c4c2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab4825934d366d04c1c649995c0ade37a" id="r_ab4825934d366d04c1c649995c0ade37a"><td class="memItemLeft" align="right" valign="top"><a id="ab4825934d366d04c1c649995c0ade37a" name="ab4825934d366d04c1c649995c0ade37a"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>resizeEvent</b> (QResizeEvent *e) override</td></tr>
<tr class="separator:ab4825934d366d04c1c649995c0ade37a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a11306ffc71c076553147238163e46d9b" id="r_a11306ffc71c076553147238163e46d9b"><td class="memItemLeft" align="right" valign="top"><a id="a11306ffc71c076553147238163e46d9b" name="a11306ffc71c076553147238163e46d9b"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>updateInnerWidgetGeometry</b> ()</td></tr>
<tr class="separator:a11306ffc71c076553147238163e46d9b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="properties" name="properties"></a>
属性</h2></td></tr>
<tr class="memitem:a131360dfd349fd99c8c9de581b25df45" id="r_a131360dfd349fd99c8c9de581b25df45"><td class="memItemLeft" align="right" valign="top"><a id="a131360dfd349fd99c8c9de581b25df45" name="a131360dfd349fd99c8c9de581b25df45"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>animationWidgetHeight</b></td></tr>
<tr class="separator:a131360dfd349fd99c8c9de581b25df45"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>具有弹出式菜单功能的堆叠窗口部件 </p>
<p>此类扩展了 QStackedWidget，添加了两种工作模式：</p><ol type="1">
<li>正常模式：作为常规的堆叠部件，嵌入在父窗口布局中</li>
<li>弹出模式：作为独立的弹出窗口，可用于实现类似菜单的显示效果</li>
</ol>
<p>在弹出模式下，窗口将显示为无边框面板，并支持模态事件循环（exec()方法）， 这使得它可以像菜单或对话框一样使用。</p>
<dl class="section note"><dt>注解</dt><dd>切换模式时会自动处理窗口状态和事件循环 </dd></dl>
<dl class="section see"><dt>参见</dt><dd>QStackedWidget </dd></dl>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="a3ba3ff9bf5d7d3f6c815e17b17d9da73" name="a3ba3ff9bf5d7d3f6c815e17b17d9da73"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3ba3ff9bf5d7d3f6c815e17b17d9da73">&#9670;&#160;</a></span>animationDuration()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int SARibbonStackedWidget::animationDuration </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取动画持续时间 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="af1ccb44764c3e695c850edb0d77fa6d2" name="af1ccb44764c3e695c850edb0d77fa6d2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af1ccb44764c3e695c850edb0d77fa6d2">&#9670;&#160;</a></span>exec()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonStackedWidget::exec </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>在弹出模式下以模态方式运行事件循环 </p>
<p>此方法仅在弹出模式下有效：</p><ol type="1">
<li>显示窗口</li>
<li>启动局部事件循环</li>
<li>窗口隐藏时退出事件循环</li>
</ol>
<dl class="section note"><dt>注解</dt><dd>在正常模式下调用此方法仅显示窗口 </dd></dl>
<dl class="section warning"><dt>警告</dt><dd>不要在事件循环中再次调用此方法 </dd></dl>

</div>
</div>
<a id="a19292ac19fe9773463b1dc03e39eb4d2" name="a19292ac19fe9773463b1dc03e39eb4d2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a19292ac19fe9773463b1dc03e39eb4d2">&#9670;&#160;</a></span>isNormalMode()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool SARibbonStackedWidget::isNormalMode </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>检查当前是否处于正常模式 </p>
<dl class="section return"><dt>返回</dt><dd>如果是正常模式返回 true，否则返回 false </dd></dl>

</div>
</div>
<a id="a5d66ea99158eaa11f5abb1c82f026000" name="a5d66ea99158eaa11f5abb1c82f026000"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5d66ea99158eaa11f5abb1c82f026000">&#9670;&#160;</a></span>isPopupMode()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool SARibbonStackedWidget::isPopupMode </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>检查当前是否处于弹出模式 </p>
<dl class="section return"><dt>返回</dt><dd>如果是弹出模式返回 true，否则返回 false </dd></dl>

</div>
</div>
<a id="a670a3956edc5dc88b027cce3a5dffff9" name="a670a3956edc5dc88b027cce3a5dffff9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a670a3956edc5dc88b027cce3a5dffff9">&#9670;&#160;</a></span>isUseAnimation()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool SARibbonStackedWidget::isUseAnimation </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取动画启用状态 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="a6e11c45f02dd276e2e4bde5860ee7817" name="a6e11c45f02dd276e2e4bde5860ee7817"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6e11c45f02dd276e2e4bde5860ee7817">&#9670;&#160;</a></span>layoutRequestInnerWidgets()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonStackedWidget::layoutRequestInnerWidgets </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>对内部窗口发送布局请求 </p>
<p>这个方法会让子窗口布局失效同时重新计算布局 </p>

</div>
</div>
<a id="ab56bf543d3ee5571931efcc90e2dde66" name="ab56bf543d3ee5571931efcc90e2dde66"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab56bf543d3ee5571931efcc90e2dde66">&#9670;&#160;</a></span>moveWidget()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonStackedWidget::moveWidget </td>
          <td>(</td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>from</em>, </span></td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>to</em></span>&#160;)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>类似tabbar的moveTab函数，交换两个窗口的index </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">from</td><td></td></tr>
    <tr><td class="paramname">to</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>注解</dt><dd>此操作会触发widgetRemoved(int index)信号 </dd></dl>

</div>
</div>
<a id="adccbd92170c2270757dfdfd17b8be98b" name="adccbd92170c2270757dfdfd17b8be98b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adccbd92170c2270757dfdfd17b8be98b">&#9670;&#160;</a></span>setAnimationDuration()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonStackedWidget::setAnimationDuration </td>
          <td>(</td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>duration</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置动画持续时间（毫秒） </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">duration</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a8f4bb11f3d60fbf79700c3dd06546413" name="a8f4bb11f3d60fbf79700c3dd06546413"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8f4bb11f3d60fbf79700c3dd06546413">&#9670;&#160;</a></span>setNormalGeometry()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonStackedWidget::setNormalGeometry </td>
          <td>(</td>
          <td class="paramtype">const QRect &amp;</td>          <td class="paramname"><span class="paramname"><em>normalGeometry</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置窗口normalGeometry，由于此窗口会有动画，防止动画过程中设置尺寸又被动画覆盖，因此此窗口的尺寸设置使用setNormalSize </p>
<p>此函数在没有动画的时候，等同于 </p><div class="fragment"><div class="line">setFixedSize(normalGeometry.width(),normalGeometry.height());</div>
<div class="line">move(normalGeometry.x(),normalGeometry.y());</div>
</div><!-- fragment --> <dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">normalGeometry</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="acbe1dd190ab3351d2eeec52b44ce74dd" name="acbe1dd190ab3351d2eeec52b44ce74dd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acbe1dd190ab3351d2eeec52b44ce74dd">&#9670;&#160;</a></span>setNormalMode()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonStackedWidget::setNormalMode </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置正常模式 和普通的stackwidget一样 </p>
<p>在此模式下，窗口将：</p><ul>
<li>设置为常规部件模式 (Qt::Widget)</li>
<li>无边框窗口</li>
<li>不显示框架</li>
</ul>
<dl class="section note"><dt>注解</dt><dd>如果存在模态事件循环，将退出该循环 </dd></dl>

</div>
</div>
<a id="af31197e98a9868aa1b90ac133eb0616f" name="af31197e98a9868aa1b90ac133eb0616f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af31197e98a9868aa1b90ac133eb0616f">&#9670;&#160;</a></span>setPopupMode()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonStackedWidget::setPopupMode </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置弹出模式 </p>
<p>在此模式下，窗口将：</p><ul>
<li>设置为 Qt::Popup 标志</li>
<li>无边框窗口</li>
<li>显示为面板样式</li>
</ul>
<dl class="section note"><dt>注解</dt><dd>切换模式时会自动处理窗口隐藏和显示 </dd></dl>

</div>
</div>
<a id="a4104d2850c2190b854d6b69d44fa42a7" name="a4104d2850c2190b854d6b69d44fa42a7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4104d2850c2190b854d6b69d44fa42a7">&#9670;&#160;</a></span>setUseAnimation()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonStackedWidget::setUseAnimation </td>
          <td>(</td>
          <td class="paramtype">bool</td>          <td class="paramname"><span class="paramname"><em>on</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置是否启用弹出动画 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">on</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>C:/src/Qt/SARibbon/src/SARibbonBar/<a class="el" href="_s_a_ribbon_stacked_widget_8h_source.html">SARibbonStackedWidget.h</a></li>
<li>C:/src/Qt/SARibbon/src/SARibbonBar/<b>SARibbonStackedWidget.cpp</b></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="class_s_a_ribbon_stacked_widget.html">SARibbonStackedWidget</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.10.0 </li>
  </ul>
</div>
</body>
</html>
